// TSGView.cpp : implementation of the CTSGView class
//

#include "stdafx.h"
#include "TSG.h"

#include "TSGDoc.h"
#include "TSGView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CTSGView

IMPLEMENT_DYNCREATE(CTSGView, CView)

BEGIN_MESSAGE_MAP(CTSGView, CView)
END_MESSAGE_MAP()

// CTSGView construction/destruction

CTSGView::CTSGView()
{
	// TODO: add construction code here

}

CTSGView::~CTSGView()
{
}

BOOL CTSGView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

// CTSGView drawing

void CTSGView::OnDraw(CDC* /*pDC*/)
{
	CTSGDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	if (!pDoc)
		return;

	// TODO: add draw code for native data here
}


// CTSGView diagnostics

#ifdef _DEBUG
void CTSGView::AssertValid() const
{
	CView::AssertValid();
}

void CTSGView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CTSGDoc* CTSGView::GetDocument() const // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTSGDoc)));
	return (CTSGDoc*)m_pDocument;
}
#endif //_DEBUG


// CTSGView message handlers
